package com.tc.biz.service.impl;

import com.tc.biz.entity.BpmnApproval;
import com.tc.biz.mapper.BpmnApprovalMapper;
import com.tc.biz.service.BpmnApprovalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zengqingfa
 * @date 2019/11/20 10:10
 * @description
 * @email zengqingfa_java@163.com
 */
@Service
public class BpmnApprovalServiceImpl implements BpmnApprovalService {

    @Autowired
    private BpmnApprovalMapper mapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(BpmnApproval record) {
        return mapper.insert(record);
    }

    @Override
    public int insertSelective(BpmnApproval record) {
        return mapper.insertSelective(record);
    }

    @Override
    public BpmnApproval selectByPrimaryKey(String id) {
        return mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(BpmnApproval record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(BpmnApproval record) {
        return mapper.updateByPrimaryKey(record);
    }

    public BpmnApproval findByTaskId(String taskId){
        return mapper.findByTaskId(taskId);
    }
}
